package com.cu.自动装配;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @Auther: 代理仁
 * @Date: 2019/7/10 22:53
 * @Description: 自动装配
 */
@Service
public class UserServie {
    @Qualifier("userDao")
    @Autowired private UserDao userDao;

    @Override
    public String toString() {
        return "UserServie{" +
                "dao=" + userDao +
                '}';
    }
}
